gtk4.git
14 years agoa11y: Emit row-deleted signal when rows get deleted
Benjamin Otte [Mon, 12 Dec 2011 10:30:24 +0000 (11:30 +0100)]
a11y: Emit row-deleted signal when rows get deleted

Instead of in the old callbacks.

14 years agoa11y: Revert 22a47c3dbd7875af10df58feedd81d7b661222b6
Benjamin Otte [Mon, 12 Dec 2011 10:20:33 +0000 (11:20 +0100)]
a11y: Revert 22a47c3dbd7875af10df58feedd81d7b661222b6

The fix is wrong on multiple levels. I'll add a proper fix soon.

https://bugzilla.gnome.org/show_bug.cgi?id=548782

14 years agotreeview: Don't use signals in a11y row expansion
Benjamin Otte [Mon, 12 Dec 2011 09:39:05 +0000 (10:39 +0100)]
treeview: Don't use signals in a11y row expansion

Instead, add a function and call it directly.

14 years agoa11y: Add _gtk_tree_view_accessible_add_state()
Benjamin Otte [Mon, 12 Dec 2011 09:25:27 +0000 (10:25 +0100)]
a11y: Add _gtk_tree_view_accessible_add_state()

... and _gtk_tree_view_accessible_remove_state(). They should be called
by gtktreeview.c to notify about changes of state for a row.

14 years agoa11y: Split out function
Benjamin Otte [Mon, 12 Dec 2011 09:24:53 +0000 (10:24 +0100)]
a11y: Split out function

I want to use that function when sending notifications. See next
commits.

14 years agoa11y: Readd FOCUSABLE state
Benjamin Otte [Mon, 12 Dec 2011 06:17:02 +0000 (07:17 +0100)]
a11y: Readd FOCUSABLE state

The state was lost in commit 08d86fabc4237092bf04a97795498f2c45575085.

Also order the states that are always set alphabetically.

14 years agoa11y: Remove old notify about showing/visible
Benjamin Otte [Mon, 12 Dec 2011 06:09:32 +0000 (07:09 +0100)]
a11y: Remove old notify about showing/visible

As cells are always visible and showing, there is no need to do complex
notification mechanisms anymore.

14 years agoa11y: Add _gtk_cell_accessible_state_changed()
Benjamin Otte [Sun, 11 Dec 2011 05:37:05 +0000 (06:37 +0100)]
a11y: Add _gtk_cell_accessible_state_changed()

It's supposed to replace the old state_set calls.

14 years agoa11y: Split out renderer<->atk state matching
Benjamin Otte [Sun, 11 Dec 2011 04:02:36 +0000 (05:02 +0100)]
a11y: Split out renderer<->atk state matching

We now keep a state map. This makes adding new states easier, and
doesn't introduce bugs with state change emissions.

14 years agoa11y: Don't duplicate information anymore
Benjamin Otte [Sun, 11 Dec 2011 02:02:12 +0000 (03:02 +0100)]
a11y: Don't duplicate information anymore

We do provide the expandable and expanded information via
GtkCellRendererState now so there is no need to use extra flags.

14 years agoa11y: Set new treeview flags
Benjamin Otte [Sun, 11 Dec 2011 01:57:36 +0000 (02:57 +0100)]
a11y: Set new treeview flags

14 years agotreeview: Set the new flags when rendering the cell
Benjamin Otte [Sun, 11 Dec 2011 01:52:26 +0000 (02:52 +0100)]
treeview: Set the new flags when rendering the cell

14 years agocellrenderer: Add EXPANDED and EXPANDABLE states
Benjamin Otte [Sat, 10 Dec 2011 20:05:30 +0000 (21:05 +0100)]
cellrenderer: Add EXPANDED and EXPANDABLE states

These make more sense as flags than they do as properties of the cell
renderer.

14 years agotests: Add a test for latest commit
Benjamin Otte [Fri, 16 Dec 2011 02:12:39 +0000 (03:12 +0100)]
tests: Add a test for latest commit

14 years agowidget: Don't change sensitive state with insensitve parent
Benjamin Otte [Thu, 15 Dec 2011 19:32:54 +0000 (20:32 +0100)]
widget: Don't change sensitive state with insensitve parent

This way child.set_sensitive(True) with an insensitive parent doesn't
cause child to become sensitive.

14 years agofontchooserwidget: Handle dpi < 0
Benjamin Otte [Thu, 15 Dec 2011 18:38:48 +0000 (19:38 +0100)]
fontchooserwidget: Handle dpi < 0

Just use 96.0

14 years agoAdd new symbols
Matthias Clasen [Fri, 16 Dec 2011 03:40:01 +0000 (22:40 -0500)]
Add new symbols

14 years agoiconhelper: treat the empty string as a NULL icon name
Cosimo Cecchi [Thu, 15 Dec 2011 19:01:35 +0000 (20:01 +0100)]
iconhelper: treat the empty string as a NULL icon name

Treat the empty string as if it was a NULL icon name instead of
rendering GTK_STOCK_MISSING_IMAGE.
This used to be the previous behavior of GtkCellRendererPixbuf and
applications might still rely on it.

14 years agocellrendererpix: save the icon size locally instead of in the helper
Cosimo Cecchi [Thu, 15 Dec 2011 18:59:24 +0000 (19:59 +0100)]
cellrendererpix: save the icon size locally instead of in the helper

We need to save the icon size locally for GtkCellRendererPixbuf, since
its properties are set again every time it's drawn (resetting the icon
size on the helper by means of _gtk_icon_helper_clear() each time).

14 years agomenuitem: cleanup arrow-spacing fetch code
Cosimo Cecchi [Thu, 15 Dec 2011 17:49:16 +0000 (18:49 +0100)]
menuitem: cleanup arrow-spacing fetch code

Refactor get_arrow_size() to return the spacing as well, since basically
we always need both.

14 years agomenuitem: share code between HFW and non-HFW height requests
Cosimo Cecchi [Thu, 15 Dec 2011 17:42:27 +0000 (18:42 +0100)]
menuitem: share code between HFW and non-HFW height requests

The code is very similar; having two slightly different code paths is
bad and can lead to bugs. Refactor the code to use the same height
request function.

14 years agomenuitem: properly respect padding when drawing the separators
Cosimo Cecchi [Thu, 15 Dec 2011 15:00:32 +0000 (16:00 +0100)]
menuitem: properly respect padding when drawing the separators

Use the padding when calculating the draw coordinates of the separator.

https://bugzilla.gnome.org/show_bug.cgi?id=666242

14 years agomenuitem: force odd height if we're not using wide separators
Cosimo Cecchi [Thu, 15 Dec 2011 14:54:59 +0000 (15:54 +0100)]
menuitem: force odd height if we're not using wide separators

So that the 1px line can receive the same amount of space above and
below.

https://bugzilla.gnome.org/show_bug.cgi?id=666242

14 years agomenuitem: don't request twice the padding for separator menu items
Cosimo Cecchi [Thu, 15 Dec 2011 11:33:50 +0000 (12:33 +0100)]
menuitem: don't request twice the padding for separator menu items

Padding was requested twice for separator menu items.

https://bugzilla.gnome.org/show_bug.cgi?id=666242

14 years agodemo: Add test for hide-titlebar-when-maximized
Florian Müllner [Sat, 3 Dec 2011 00:46:53 +0000 (01:46 +0100)]
demo: Add test for hide-titlebar-when-maximized

Add an additional option to the appwindow demo to test the new
gtk-hide-titlebar-when-maximized setting.

https://bugzilla.gnome.org/show_bug.cgi?id=665616

14 years agowindow: Add hide-titlebar-when-maximized property
Florian Müllner [Sat, 3 Dec 2011 00:47:25 +0000 (01:47 +0100)]
window: Add hide-titlebar-when-maximized property

For maximized windows, titlebars cannot be used to reposition or
scale the window, so if an application does not use it to convey
useful information (other than the application name), the screen
space occupied by titlebars could be put to better use.
Add a new window property which requests from the window manager
to hide titlebars when windows are maximized to account for this.

https://bugzilla.gnome.org/show_bug.cgi?id=665616

14 years agoscale: remove unused variable
Cosimo Cecchi [Thu, 15 Dec 2011 11:16:09 +0000 (12:16 +0100)]
scale: remove unused variable

14 years agowidget: Synthesize crossing only if sensitivity changed while propagating state
Rui Matos [Wed, 14 Dec 2011 02:29:38 +0000 (02:29 +0000)]
widget: Synthesize crossing only if sensitivity changed while propagating state

14 years agoAdd has-origin property for GtkScale
Andrea Cimitan [Wed, 14 Dec 2011 16:16:09 +0000 (17:16 +0100)]
Add has-origin property for GtkScale

If the scale has an origin (it will have one by default), GtkRange will
render the two sides before/after the current value with different style
classes, making it possible for themes to use different colors and
properties for the two areas.
This was possible in GTK 2 with style details, but got lost during the
road to 3.0.

https://bugzilla.gnome.org/show_bug.cgi?id=665140

14 years agowayland: Add dummy implementation of the wl_data_device functionality
Rob Bradford [Wed, 14 Dec 2011 13:11:18 +0000 (13:11 +0000)]
wayland: Add dummy implementation of the wl_data_device functionality

Setup listener functions for the drag and drop events as well as the selection
events. Then create and save a data structure representing the data offer from
the other client.

14 years agowayland: Add an implementation for GdkAtom
Rob Bradford [Tue, 13 Dec 2011 17:39:43 +0000 (17:39 +0000)]
wayland: Add an implementation for GdkAtom

This implementation is based on a hash table. The hard coded GtkSelection
atoms are preloaded into the hash table at the correct values. User generated
atoms start after the last preloaded atom.

14 years agowayland: Get the data device during input device setup
Rob Bradford [Mon, 12 Dec 2011 14:26:27 +0000 (14:26 +0000)]
wayland: Get the data device during input device setup

The data device is a associated with the input device - fetch the data device
from the data manager for the current input device.

14 years agowayland: Retrieve the data device manager object
Rob Bradford [Mon, 12 Dec 2011 13:56:25 +0000 (13:56 +0000)]
wayland: Retrieve the data device manager object

The data device manager is a global object that provides the support
infrastructure around data devices. These data device objects are the basis
for handling drag and drop as well as selections in Wayland.

14 years agowayland: Don't use deprecated function: gdk_window_get_pointer
Rob Bradford [Wed, 14 Dec 2011 14:27:07 +0000 (14:27 +0000)]
wayland: Don't use deprecated function: gdk_window_get_pointer

Replace it with gdk_window_get_device_position.

14 years agoUpdated Slovak translation
Pavol Šimo [Wed, 14 Dec 2011 13:19:06 +0000 (14:19 +0100)]
Updated Slovak translation

14 years agoprint dialog: Fix authentication logic
Jan Rękorajski [Wed, 14 Dec 2011 13:09:48 +0000 (14:09 +0100)]
print dialog: Fix authentication logic

Reset state of CUPS requests correctly during authentization and
check CUPS requests for errors.
Don't initialize variables holding password and username with empty
string (#664640).

14 years agoFix nicks for the window class enum
Matthias Clasen [Wed, 14 Dec 2011 02:13:31 +0000 (21:13 -0500)]
Fix nicks for the window class enum

As pointed out in bug 665999, these were just not right.
Before this commit, the nicks were 'output' and 'only'.
After this commit, they are 'input-output' and 'input-only'.

14 years agoFix set_focus_child handling during focus changes
Alexander Larsson [Tue, 13 Dec 2011 23:23:57 +0000 (00:23 +0100)]
Fix set_focus_child handling during focus changes

In many cases we used to set focus_child to NULL all the way up
to the top and then to the right value, even if there was
a common ancestor, meaning these see a temporary NULL value for
focus_child. Only when the new focus widgets direct parent was
in the previous ancestor list did we stop early.

This fixes that by always stopping propagation when reaching
the common ancestor.

14 years agoGtkFrame: Fix a casting in the compute_child_allocation() method
Claudio Saavedra [Tue, 13 Dec 2011 17:25:15 +0000 (19:25 +0200)]
GtkFrame: Fix a casting in the compute_child_allocation() method

The casting used to calculate the child allocation is confusing MAX().
As a result, width and height end up with negative values, which makes no sense.

https://bugzilla.gnome.org/show_bug.cgi?id=666109

14 years agothemingengine: split a GtkThemingBackground object
Cosimo Cecchi [Sat, 10 Dec 2011 00:14:12 +0000 (19:14 -0500)]
themingengine: split a GtkThemingBackground object

Allows easier modification and general sanity of the CSS background
rendering code.

14 years agoimage: take misc padding into account when calculating x/y draw coords
Cosimo Cecchi [Mon, 12 Dec 2011 11:30:27 +0000 (12:30 +0100)]
image: take misc padding into account when calculating x/y draw coords

This fixes the misc-alignment.ui reftest.

14 years agoimage: add gtk_image_get_preferred_size()
Cosimo Cecchi [Mon, 12 Dec 2011 11:29:21 +0000 (12:29 +0100)]
image: add gtk_image_get_preferred_size()

Add a function to query the preferred size of the GtkImage, and use it
in the get_preferred_width/height implementations.

14 years agotreeview: Ensure selection's changed signal
Benjamin Otte [Sat, 10 Dec 2011 06:54:34 +0000 (07:54 +0100)]
treeview: Ensure selection's changed signal

There was a corner case where the changed signal was not emitted.
If rows were built like this:
  1    (not selected)
  + 2  (selected)
  + 3  (not selected)
And row 1 was removed, no signal would be emitted.

I like it when writing tests actually finds bugs that have been around
since 2003 - introduced by 4a03ea2334bde7d2e15d0933c5a78f5a2338a854
actually. :)

14 years agotreeview: Don't try to optimize away selection_changed signal
Benjamin Otte [Sat, 10 Dec 2011 05:49:29 +0000 (06:49 +0100)]
treeview: Don't try to optimize away selection_changed signal

We get certain cases, in particular with SELECTION_MULTIPLE, where we
cannot figure out in advance of real_set_cursor() if the selection will
actually change.

14 years agotests: Add select/unselect calls
Benjamin Otte [Sat, 10 Dec 2011 05:24:40 +0000 (06:24 +0100)]
tests: Add select/unselect calls

14 years agotreeview: Add a CURSOR_INVALID flag to set_cursor_row()
Benjamin Otte [Sat, 10 Dec 2011 05:10:05 +0000 (06:10 +0100)]
treeview: Add a CURSOR_INVALID flag to set_cursor_row()

This is necessary so the code doesn't attempt to do things with the
previous cursor, which currently cause crashes.

14 years agotreeview: Replace lots of boolean args with flags
Benjamin Otte [Sat, 10 Dec 2011 05:06:06 +0000 (06:06 +0100)]
treeview: Replace lots of boolean args with flags

I want to add more and 3 boolean args is essentially unreadable code.

14 years agotests: Add sanity checks for selection
Benjamin Otte [Sat, 10 Dec 2011 04:45:02 +0000 (05:45 +0100)]
tests: Add sanity checks for selection

We want to know that the selection emits "changed" when it changes.

14 years agodocs: Update code demo for newer glib
Benjamin Otte [Sat, 10 Dec 2011 04:26:06 +0000 (05:26 +0100)]
docs: Update code demo for newer glib

14 years agotests: Dump the operation that is performed to stderr
Benjamin Otte [Sat, 10 Dec 2011 03:52:48 +0000 (04:52 +0100)]
tests: Dump the operation that is performed to stderr

14 years agotests: Make treechanging test run as fast as possible
Benjamin Otte [Sat, 10 Dec 2011 03:52:33 +0000 (04:52 +0100)]
tests: Make treechanging test run as fast as possible

14 years agotreeview: Handle the case where the cursor row gets deleted
Benjamin Otte [Sat, 10 Dec 2011 03:48:12 +0000 (04:48 +0100)]
treeview: Handle the case where the cursor row gets deleted

Previously, the cursor would just become invalid, which used to
reselect the first row in the treeview later on (without a
cursor-changed signal). This leads to a crash now with the recent
refactorings.

The patch is longer than I'd like it to be, but the situation is kinda
complicated, because we want to make sure to move the cursor to a good
row. It works like this:
1) From the deleted row, search forward for the first row that is not
   going to be deleted and is not a separator.
2) If no such row exists, search backwards for a row that is not a
   separator.
3) If no such node exists, clear the cursor.

14 years agotreeview: Replace cursor handling by keeping the node
Benjamin Otte [Sat, 10 Dec 2011 01:06:33 +0000 (02:06 +0100)]
treeview: Replace cursor handling by keeping the node

Previously the code used a GtkTreeRowReference, which was (a) less
performant and more importantly (b) hiding errors.
The errors being hidden were the referenced row becoming invalid or
collapsed, because such rows would not be valid cursor rows and it would
be necesary to select a new row and emit a "cursor-changed" signal.

So if a crash bisects down to this commit, it is very likely that the
cursor has not correctly been updated and the cursor row is invalid.

14 years agotests: Put random number into local variable
Benjamin Otte [Sat, 10 Dec 2011 01:04:27 +0000 (02:04 +0100)]
tests: Put random number into local variable

This way, we can see what function had previously been called when the
checks fail.

14 years agotreeview: Use _gtk_rbtree_contains() in a11y code
Benjamin Otte [Sat, 10 Dec 2011 01:03:46 +0000 (02:03 +0100)]
treeview: Use _gtk_rbtree_contains() in a11y code

14 years agorbtree: Add _gtk_rbtree_contains()
Benjamin Otte [Sat, 10 Dec 2011 01:02:29 +0000 (02:02 +0100)]
rbtree: Add _gtk_rbtree_contains()

It's useful in a bunch of places, so split it out

14 years agoFix move-resize emulation with XI2
Matthias Clasen [Sat, 10 Dec 2011 02:21:09 +0000 (21:21 -0500)]
Fix move-resize emulation with XI2

https://bugzilla.gnome.org/show_bug.cgi?id=650943

14 years agowayland: Load cursors from wayland directory under XDG_DATA_DIRS
Rob Bradford [Mon, 5 Dec 2011 17:31:50 +0000 (17:31 +0000)]
wayland: Load cursors from wayland directory under XDG_DATA_DIRS

This means we don't have to have hardcoded "/usr/share/wayland" to find the
cursors.

This change also fixes up the warning messages for when loading fails.

14 years agoUpdated Breton translation
Denis Arnaud [Fri, 9 Dec 2011 03:31:33 +0000 (04:31 +0100)]
Updated Breton translation

14 years agoUpdated Breton translation
Denis Arnaud [Fri, 9 Dec 2011 03:20:51 +0000 (04:20 +0100)]
Updated Breton translation

14 years agoRevert 3fd7dbc94074826755da7fc3237e439ba6e81ada
Matthias Clasen [Thu, 8 Dec 2011 17:44:19 +0000 (12:44 -0500)]
Revert 3fd7dbc94074826755da7fc3237e439ba6e81ada

Calling gdk_keymap_add_virtual_modifiers causes _all_ virtual
modifiers to be added, which causes problem when they are co-located
on the same real modifier (as Super and Hyper often are). Effectively,
this made it impossible to enter key combinations involving Super,
since they all turn into Super+Hyper.

14 years agoTest some virtual modifiers
Matthias Clasen [Thu, 8 Dec 2011 13:02:18 +0000 (08:02 -0500)]
Test some virtual modifiers

This adds some accelerators involving Super and Hyper to testmerge.
This helps in testing our accel matching for those.

14 years agoprint to file: fixed lost filename in gui
Timothy Arceri [Thu, 8 Dec 2011 01:03:07 +0000 (20:03 -0500)]
print to file: fixed lost filename in gui

Stop widget creating an event before updating both directory and
filename values.

https://bugzilla.gnome.org/show_bug.cgi?id=603823

14 years agooverlay: Properly allocate the child upon addition
Benjamin Otte [Wed, 7 Dec 2011 23:20:49 +0000 (00:20 +0100)]
overlay: Properly allocate the child upon addition

This ensures that after addition the child gets assigned the proper
allocation and the child window is properly shown/hidden.

14 years agooverlay: Move code
Benjamin Otte [Wed, 7 Dec 2011 22:51:19 +0000 (23:51 +0100)]
overlay: Move code

Move code for child allocation into the child allocation function. Don't
keep it in the overlay allocation code.

See the next commit for why this is useful.

14 years agooverlay: Create child window before setting parent
Benjamin Otte [Wed, 7 Dec 2011 23:20:06 +0000 (00:20 +0100)]
overlay: Create child window before setting parent

Otherwise, the window will not be used when set_parent() maps the child.

14 years agoprogressbar: Set state flags on draw
Rui Matos [Wed, 7 Dec 2011 22:36:53 +0000 (22:36 +0000)]
progressbar: Set state flags on draw

We were missing setting state flags on the style context before drawing.

14 years agowidget: Unset window-unfocused in gtk_widget_unparent()
Rui Matos [Fri, 2 Dec 2011 15:21:20 +0000 (15:21 +0000)]
widget: Unset window-unfocused in gtk_widget_unparent()

Widgets without a parent aren't inside a toplevel window so we must remove
window-unfocused as it doesn't make sense outside a toplevel.

https://bugzilla.gnome.org/show_bug.cgi?id=661428

14 years agotreeview: Fix crash when scrolling to end
Benjamin Otte [Wed, 7 Dec 2011 19:09:16 +0000 (20:09 +0100)]
treeview: Fix crash when scrolling to end

This broke in a4630d0e7b233479825b059e0df0e6d65b0e6734

https://bugzilla.gnome.org/show_bug.cgi?id=665741

14 years agowindow: copy back window surface data when the implicit paint is flushed
Cosimo Cecchi [Tue, 6 Dec 2011 23:41:33 +0000 (18:41 -0500)]
window: copy back window surface data when the implicit paint is flushed

When an implicit paint is flushed during expose, e.g. because a
non-double buffered widget is painting, make sure to copy the existing
data from the window surface we rendered before flushing back to the
paint surface, instead of using an empty base.
Code was already handling that (and said so in the comment), but only
when no implicit paint was used at all, and not in the case when it's
flushed mid-expose.

14 years agowindow: trivial cleanup
Cosimo Cecchi [Tue, 6 Dec 2011 23:27:59 +0000 (18:27 -0500)]
window: trivial cleanup

14 years agowindow: remove unused arguments and variables
Cosimo Cecchi [Tue, 6 Dec 2011 22:48:24 +0000 (17:48 -0500)]
window: remove unused arguments and variables

Trivial cleanup, no functional change.

14 years agomodifierstyle: Fix compile errors
Benjamin Otte [Tue, 6 Dec 2011 17:01:57 +0000 (18:01 +0100)]
modifierstyle: Fix compile errors

Introduced in 7bd2446801ffd0fc2ac5cc98fcd675ac4f3935d6

14 years agoFix demo to use a "normal" transparent value now that it works.
Alexander Larsson [Tue, 6 Dec 2011 13:11:44 +0000 (14:11 +0100)]
Fix demo to use a "normal" transparent value now that it works.

The last commit fixed this, so lets have a sane value in the demo code.

14 years agoRemove broken optimization in style modifier overrides
Alexander Larsson [Tue, 6 Dec 2011 13:09:45 +0000 (14:09 +0100)]
Remove broken optimization in style modifier overrides

We used to only set the override color or font if it was different
than the existing value. However, that means you can't change it to
an override that is the same as the default value for the property.

With this fixed you can e.g. override with a color of 0,0,0,0 which
you couldn't before.

14 years agoTry to fix linking
Matthias Clasen [Tue, 6 Dec 2011 01:56:02 +0000 (20:56 -0500)]
Try to fix linking

We need to link against gdk against pangoft2 on X11.
Also add Requires.private to gdk-3.0.pc, and try to clean
things up some.

https://bugzilla.gnome.org/show_bug.cgi?id=665326

14 years agogtk-demo: Add test of transparent GdkWindows
Alexander Larsson [Mon, 5 Dec 2011 23:23:18 +0000 (00:23 +0100)]
gtk-demo: Add test of transparent GdkWindows

This shows a semi-transparent shadow from a GtkOverlay window

14 years agoRemove an unused variable
Matthias Clasen [Mon, 5 Dec 2011 23:07:41 +0000 (18:07 -0500)]
Remove an unused variable

14 years agogtk,notebook: Invalidate the gap side when reordering tabs
Carlos Garnacho [Mon, 5 Dec 2011 16:21:01 +0000 (17:21 +0100)]
gtk,notebook: Invalidate the gap side when reordering tabs

This narrow area is invalidated so the gap follows the tab
being reordered.

14 years agonotebook: Make the tab reordering dnd window transparent
Alexander Larsson [Mon, 5 Dec 2011 20:13:50 +0000 (21:13 +0100)]
notebook: Make the tab reordering dnd window transparent

14 years agostatusicon: fix the build on !X11
Cosimo Cecchi [Mon, 5 Dec 2011 18:21:11 +0000 (13:21 -0500)]
statusicon: fix the build on !X11

Uninevitable fallout from my last patch to GtkStatusIcon. Thanks to Rob
Bradford for testing this.

14 years agowidget: Update Pango context on state change
Benjamin Otte [Mon, 5 Dec 2011 17:26:17 +0000 (18:26 +0100)]
widget: Update Pango context on state change

The layout depends on the state flags, so it must be updated when they
change.

14 years agolabel: Clear layout on state change
Benjamin Otte [Mon, 5 Dec 2011 17:25:39 +0000 (18:25 +0100)]
label: Clear layout on state change

Selected or active text might be rendered differently.

14 years agolabel: Move callback to new stuff
Benjamin Otte [Mon, 5 Dec 2011 17:24:44 +0000 (18:24 +0100)]
label: Move callback to new stuff

We want to react to state flags changing, not to the (deprecated) state
type changing.

14 years agowayland: Port from wl_shell to wl_surface_shell
Rob Bradford [Mon, 5 Dec 2011 15:55:37 +0000 (15:55 +0000)]
wayland: Port from wl_shell to wl_surface_shell

Previously all the commands that acted on the shell took the surface that was
to be acted on as parameter. Now we retrieve an object from the shell that
represents its state for the surface. With that wl_shell_surface object we can
then call methods on that.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
14 years agostylecontext: always add the ARROW style class when rendering an arrow
Cosimo Cecchi [Fri, 2 Dec 2011 16:58:14 +0000 (11:58 -0500)]
stylecontext: always add the ARROW style class when rendering an arrow

When gtk_render_arrow() is called, always add an ARROW style class to
the GtkStyleContext before rendering, so themes can specify a different
color for it.

https://bugzilla.gnome.org/show_bug.cgi?id=665420

14 years agostylecontext: add GTK_STYLE_CLASS_ARROW
Cosimo Cecchi [Fri, 2 Dec 2011 16:57:44 +0000 (11:57 -0500)]
stylecontext: add GTK_STYLE_CLASS_ARROW

For e.g. submenu items arrow in GtkMenuItems.

https://bugzilla.gnome.org/show_bug.cgi?id=665420

14 years agostatusicon: port to GtkIconHelper
Cosimo Cecchi [Wed, 30 Nov 2011 22:50:51 +0000 (17:50 -0500)]
statusicon: port to GtkIconHelper

Just always render the pixbuf ourselves and set it on the GtkImage in
the X11 case.
Code for other backends was already rendering the pixbuf manually before
translating it into a native type, so this greatly simplifies the code.

https://bugzilla.gnome.org/show_bug.cgi?id=665409

14 years agoMerge branch 'transparent-windows'
Alexander Larsson [Mon, 5 Dec 2011 13:24:28 +0000 (14:24 +0100)]
Merge branch 'transparent-windows'

14 years agoMake window handle transparent
Alexander Larsson [Mon, 5 Dec 2011 11:51:55 +0000 (12:51 +0100)]
Make window handle transparent

Instead of painting the window background on the grip_window we now
only paint it on the GtkWindow->window, and we make the grip_window
have a transparent background.

We can't really make transparent window handle background optional
via css atm, because the handle color is actually based on the
background color, so if that is set to transparent we won't draw
anything.

14 years agogdk: gdk_window_get_update_area don't remove alpha covered areas
Alexander Larsson [Mon, 5 Dec 2011 11:18:22 +0000 (12:18 +0100)]
gdk: gdk_window_get_update_area don't remove alpha covered areas

gdk_window_get_update_area is supposed to get the area where things
need painting, and remove them from the update areas. However, if
some area is covered by other windows with an alpha background we
can't just expect whatever the app choses to render in the update
area as correct, so we don't actually remove these areas, meaning
they will get correctly rendered when we get to the expose handlers.

14 years agogdk: gdk_window_move_region
Alexander Larsson [Mon, 5 Dec 2011 11:16:55 +0000 (12:16 +0100)]
gdk: gdk_window_move_region

gdk_window_move_region doesn't move children, so we can't copy
transparent child window regions with copyarea, so we remove these
from the copy region.

14 years agogdk: Fix alpha window background paintings on non-implicit paints
Alexander Larsson [Mon, 5 Dec 2011 10:40:30 +0000 (11:40 +0100)]
gdk: Fix alpha window background paintings on non-implicit paints

14 years agogdk: Remove unused _gdk_window_calculate_full_clip_region
Alexander Larsson [Mon, 5 Dec 2011 09:59:07 +0000 (10:59 +0100)]
gdk: Remove unused _gdk_window_calculate_full_clip_region

14 years agoHandle has_alpha_background for parent-relative backgrounds
Alexander Larsson [Mon, 5 Dec 2011 09:55:55 +0000 (10:55 +0100)]
Handle has_alpha_background for parent-relative backgrounds

14 years agoentry: avoid a mismatched cairo_save/restore
Cosimo Cecchi [Mon, 5 Dec 2011 00:57:25 +0000 (19:57 -0500)]
entry: avoid a mismatched cairo_save/restore

Leftover from GtkIconHelper migration.

14 years agoRemove unused alignment from GtkTooltip.
Paolo Borelli [Sun, 4 Dec 2011 18:20:23 +0000 (19:20 +0100)]
Remove unused alignment from GtkTooltip.

14 years agoPlug tiny leak in the css parser
Paolo Borelli [Sat, 3 Dec 2011 16:51:36 +0000 (17:51 +0100)]
Plug tiny leak in the css parser

14 years agowayland: Update to recent API changes
Kristian Høgsberg [Wed, 30 Nov 2011 15:21:27 +0000 (10:21 -0500)]
wayland: Update to recent API changes

14 years agoGtkIconView: fix a memory corruption in the drag-n-drop code
Claudio Saavedra [Thu, 1 Dec 2011 21:47:36 +0000 (22:47 +0100)]
GtkIconView: fix a memory corruption in the drag-n-drop code

You shall free with g_slice_free() what you allocate with
g_slice_new().

https://bugzilla.gnome.org/show_bug.cgi?id=665338